package com.zhentao.tot.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 自媒体图文引用素材信息对象 wm_news_material
 * 
 * @author ruoyi
 * @date 2025-04-17
 */
public class WmNewsMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 素材ID */
    @Excel(name = "素材ID")
    private Integer materialId;

    /** 图文ID */
    @Excel(name = "图文ID")
    private Integer newsId;

    /** 引用类型 0内容引用 1 主图引用 */
    @Excel(name = "引用类型 0内容引用 1 主图引用")
    private Integer type;

    /** 引用排序 */
    @Excel(name = "引用排序")
    private Integer ord;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setMaterialId(Integer materialId) 
    {
        this.materialId = materialId;
    }

    public Integer getMaterialId() 
    {
        return materialId;
    }

    public void setNewsId(Integer newsId) 
    {
        this.newsId = newsId;
    }

    public Integer getNewsId() 
    {
        return newsId;
    }

    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public void setOrd(Integer ord) 
    {
        this.ord = ord;
    }

    public Integer getOrd() 
    {
        return ord;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("materialId", getMaterialId())
            .append("newsId", getNewsId())
            .append("type", getType())
            .append("ord", getOrd())
            .toString();
    }
}
